package edu.tgc.entity.system;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Embeddable
public class SysUserDept implements Serializable {

    private static final long serialVersionUID = -3464915609860460195L;
    protected SysDept dept;
    protected SysUser user;

    @ManyToOne
    @JoinColumn(name = "dept_id")
    public SysDept getDept() {
        return this.dept;
    }

    @ManyToOne
    @JoinColumn(name = "user_id")
    public SysUser getUser() {
        return this.user;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

}
